package com.kaochong.xcx.utils.response;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import java.io.Serializable;

import lombok.Data;

/**
 * http请求返回的最外层对象
 * @author han
 * @date 2018-05-01 14:43
 */
@Data
@JsonSerialize(include =  JsonSerialize.Inclusion.NON_NULL)
public class ResultVO<T> implements Serializable {

    private static final long serialVersionUID = 3068837394742385883L;

    /** 错误码. */
    private Integer code;

    /** 提示信息. */
    private String errMsg;

    /** 具体内容. */
    private T data;
}
